package cn.thoughtworks.school.programCenter.util;

public class Roles {
  private static Integer TUTOR_ROLE_NUMBER = 2;
  private static Integer INSTRUCTOR_ROLE_NUMBER = 7;
  private static Integer ADMIN_ROLE_NUMBER = 9;

  public static Integer get(String type) {
    switch (type) {
      case "instructor":
        return INSTRUCTOR_ROLE_NUMBER;
      case "admin":
        return ADMIN_ROLE_NUMBER;
      default:
        return TUTOR_ROLE_NUMBER;
    }
  }
}
